f,n = io.open("db:/MemoDB", "r")
s= {}
usetIt = {}
ind = 0

for i = 0,n-1,1 do
	f:openrec(i)
	s[i] = f:read("*a")
	-- if the first 5 characters of register is 
	if(string.sub(s[i],0,5) == "sd-vt") then
		ind = ind + 1
		usetIt[ind] = s[i]
	end
end

-- the index bigin at 1, so the first is..
print(usetIt[1])
f:close()
gui.main()

